<section class="vote">
    <div class="vote_center">
        <div class="aside_left">
        	<div class="column_name">
        		活动动态
        	</div>
        	<div class="act_news">
        		<?php $posts = get_posts( "category=5&numberposts=10" ); ?>  
				<?php if( $posts ) : ?>  
				<ul class="pc"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>  
				<li>  
				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>  
				<span style="float: right;">
					<?php the_time('[Y-n-j]'); ?>
						
				</span>
				</li>  

				<?php endforeach; ?>  
				</ul>  
				<?php endif; ?>
				<?php $posts = get_posts( "category=5&numberposts=10" ); ?>  
				<?php if( $posts ) : ?>  
				<ul class="mob"><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>  
				<li>  
				<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php   $title=get_the_title(); $title=substr($title,0,51)."..."; echo $title; ?> </a>  
				<span style="float: right;">
					<?php the_time('[Y-n-j]'); ?>	
				</span>
				</li>  

				<?php endforeach; ?>  
				</ul>  
				<?php endif; ?>
        	</div>
        	<div  class="column_name">
        		相关视频
        	</div>
        	<div class="video_news" style="justify-content: space-around;padding: 20px;display: flex;flex-wrap: wrap;">
                		<?php 
                			$options=array(
                                    //显示三篇文章
                                    'numberposts' => 3,
                                    //categoryID应该是媒体中心目录ID
                                    'category' => 3
                                );
                                $content_arr=get_posts($options);
                                foreach ($content_arr as $item) {
                                	$item=object_array($item);
                                	$item["post_content"]=preg_replace("/<p>/","",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/<\/p>/","",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/500/","240",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/375/","180",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/640/","240",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/498/","180",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/name/","id='name".$item['ID']."'",$item["post_content"]);
                                	echo "<div style='position:relative'><div style='position:absolute;width:100%;height:100%;z-index:999'  onclick='window.location.href=\"".$item["guid"]."\"'></div>".$item["post_content"]."<p style='text-align:center;'>".$item["post_title"]."</p></div>";
                                	echo "<script>$('#name".$item['ID']."').contents().find('.txp_tipbar').hide();console.log(0)</script>";

                                }

                		?>
                   
			</div>
			<div  class="column_name">
        		往届精选
        	</div>
        	<div class="video_news" style="justify-content: space-around;padding: 20px;display: flex;flex-wrap: wrap;min-height: 240px;">
                		<?php 
                			/*$options=array(
                                    //显示三篇文章
                                    'numberposts' => 3,
                                    //categoryID应该是媒体中心目录ID
                                    'category' => 3
                                );
                                $content_arr=get_posts($options);
                                foreach ($content_arr as $item) {
                                	$item=object_array($item);
                                	$item["post_content"]=preg_replace("/<p>/","",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/<\/p>/","",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/500/","240",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/375/","180",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/640/","240",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/498/","180",$item["post_content"]);
                                	$item["post_content"]=preg_replace("/name/","id='name".$item['ID']."'",$item["post_content"]);
                                	echo "<div style='position:relative'><div style='position:absolute;width:100%;height:100%;z-index:999'  onclick='window.location.href=\"".$item["guid"]."\"'></div>".$item["post_content"]."<p style='text-align:center;'>".$item["post_title"]."</p></div>";
                                	echo "<script>$('#name".$item['ID']."').contents().find('.txp_tipbar').hide();console.log(0)</script>";

                                }*/

                		?>
                   
			</div>
        </div>
        <div class="aside_right">
            <div class="follow_slide">
            </div>
        </div>
    </div>
</section>
<script src="<?php bloginfo('template_directory'); ?>/js/slide_1.js"></script>